import Vue from 'vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'

import App from './App'
import 'bootstrap/dist/css/bootstrap.css'
import 'font-awesome/css/font-awesome.css'
import Home from './components/Home'
import Search from './components/Search'

Vue.use(VueRouter)
Vue.use(VueResource)

const routes = [{
  path: '/',
  component: Home,
},{
  path: '/home',
  // redirect: '/',
  component: Home
},{
  path: '/search',
  component: Search
}]

const router = new VueRouter( {
  routes
})


new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
